<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
    <title>Majestic Admin</title>
    <link href="../../vendors/mdi/css/materialdesignicons.min.css" rel="stylesheet">
    <link href="../../vendors/base/vendor.bundle.base.css" rel="stylesheet">

    <link href="../../css/style.css" rel="stylesheet">
    <link href="../../images/favicon.png" rel="shortcut icon"/>
</head>

<body>
<div class="container-scroller">
    <!-- partial:../../partials/_navbar.html -->
    <nav class="navbar col-lg-12 col-12 p-0 fixed-top d-flex flex-row">
        <div class="navbar-brand-wrapper d-flex justify-content-center">
            <div class="navbar-brand-inner-wrapper d-flex justify-content-between align-items-center w-100">
                <a class="navbar-brand brand-logo" href="../../index.html"><img alt="logo"
                                                                                src="../../images/logo.svg"/></a>
                <a class="navbar-brand brand-logo-mini" href="../../index.html"><img
                        alt="logo" src="../../images/logo-mini.svg"/></a>
                <button class="navbar-toggler navbar-toggler align-self-center" data-toggle="minimize"
                        type="button">
                    <span class="mdi mdi-sort-variant"></span>
                </button>
            </div>
        </div>
        <div class="navbar-menu-wrapper d-flex align-items-center justify-content-end">
            <ul class="navbar-nav mr-lg-4 w-100">
                <li class="nav-item nav-search d-none d-lg-block w-100">
                    <div class="input-group">
                        <div class="input-group-prepend">
                                <span id="search" class="input-group-text">
                                    <i class="mdi mdi-magnify"></i>
                                </span>
                        </div>
                        <input aria-describedby="search" aria-label="search" class="form-control"
                               placeholder="Search now"
                               type="text">
                    </div>
                </li>
            </ul>
            <ul class="navbar-nav navbar-nav-right">
                <li class="nav-item dropdown me-1">
                    <a id="messageDropdown"
                       class="nav-link count-indicator dropdown-toggle d-flex justify-content-center align-items-center"
                       data-bs-toggle="dropdown" href="#">
                        <i class="mdi mdi-message-text mx-0"></i>
                        <span class="count"></span>
                    </a>
                    <div aria-labelledby="messageDropdown"
                         class="dropdown-menu dropdown-menu-right navbar-dropdown">
                        <p class="mb-0 font-weight-normal float-left dropdown-header">Messages</p>
                        <a class="dropdown-item">
                            <div class="item-thumbnail">
                                <img alt="image" class="profile-pic" src="../../images/faces/face4.jpg">
                            </div>
                            <div class="item-content flex-grow">
                                <h6 class="ellipsis font-weight-normal">David Grey
                                </h6>
                                <p class="font-weight-light small-text text-muted mb-0">
                                    The meeting is cancelled
                                </p>
                            </div>
                        </a>
                        <a class="dropdown-item">
                            <div class="item-thumbnail">
                                <img alt="image" class="profile-pic" src="../../images/faces/face2.jpg">
                            </div>
                            <div class="item-content flex-grow">
                                <h6 class="ellipsis font-weight-normal">Tim Cook
                                </h6>
                                <p class="font-weight-light small-text text-muted mb-0">
                                    New product launch
                                </p>
                            </div>
                        </a>
                        <a class="dropdown-item">
                            <div class="item-thumbnail">
                                <img alt="image" class="profile-pic" src="../../images/faces/face3.jpg">
                            </div>
                            <div class="item-content flex-grow">
                                <h6 class="ellipsis font-weight-normal"> Johnson
                                </h6>
                                <p class="font-weight-light small-text text-muted mb-0">
                                    Upcoming board meeting
                                </p>
                            </div>
                        </a>
                    </div>
                </li>
                <li class="nav-item dropdown me-4">
                    <a id="notificationDropdown"
                       class="nav-link count-indicator dropdown-toggle d-flex align-items-center justify-content-center notification-dropdown"
                       data-bs-toggle="dropdown" href="#">
                        <i class="mdi mdi-bell mx-0"></i>
                        <span class="count"></span>
                    </a>
                    <div aria-labelledby="notificationDropdown"
                         class="dropdown-menu dropdown-menu-right navbar-dropdown">
                        <p class="mb-0 font-weight-normal float-left dropdown-header">Notifications</p>
                        <a class="dropdown-item">
                            <div class="item-thumbnail">
                                <div class="item-icon bg-success">
                                    <i class="mdi mdi-information mx-0"></i>
                                </div>
                            </div>
                            <div class="item-content">
                                <h6 class="font-weight-normal">Application Error</h6>
                                <p class="font-weight-light small-text mb-0 text-muted">
                                    Just now
                                </p>
                            </div>
                        </a>
                        <a class="dropdown-item">
                            <div class="item-thumbnail">
                                <div class="item-icon bg-warning">
                                    <i class="mdi mdi-settings mx-0"></i>
                                </div>
                            </div>
                            <div class="item-content">
                                <h6 class="font-weight-normal">Settings</h6>
                                <p class="font-weight-light small-text mb-0 text-muted">
                                    Private message
                                </p>
                            </div>
                        </a>
                        <a class="dropdown-item">
                            <div class="item-thumbnail">
                                <div class="item-icon bg-info">
                                    <i class="mdi mdi-account-box mx-0"></i>
                                </div>
                            </div>
                            <div class="item-content">
                                <h6 class="font-weight-normal">New user registration</h6>
                                <p class="font-weight-light small-text mb-0 text-muted">
                                    2 days ago
                                </p>
                            </div>
                        </a>
                    </div>
                </li>
                <li class="nav-item nav-profile dropdown">
                    <a id="profileDropdown" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#">
                        <img alt="profile" src="../../images/faces/face5.jpg"/>
                        <span class="nav-profile-name">Louis Barnett</span>
                    </a>
                    <div aria-labelledby="profileDropdown"
                         class="dropdown-menu dropdown-menu-right navbar-dropdown">
                        <a class="dropdown-item">
                            <i class="mdi mdi-settings text-primary"></i>
                            Settings
                        </a>
                        <a class="dropdown-item">
                            <i class="mdi mdi-logout text-primary"></i>
                            Logout
                        </a>
                    </div>
                </li>
            </ul>
            <button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" data-toggle="offcanvas"
                    type="button">
                <span class="mdi mdi-menu"></span>
            </button>
        </div>
    </nav>
    <!-- partial -->
    <div class="container-fluid page-body-wrapper">
        <!-- partial:../../partials/_sidebar.html -->
        <nav id="sidebar" class="sidebar sidebar-offcanvas">
            <ul class="nav">
                <li class="nav-item">
                    <a class="nav-link" href="index.html">
                        <i class="mdi mdi-home menu-icon"></i>
                        <span class="menu-title">仪表盘</span>
                    </a>
                </li>

                <li class="nav-item">
                    <a aria-controls="ui-store" aria-expanded="false" class="nav-link" data-bs-toggle="collapse"
                       href="#ui-store">
                        <i class="mdi mdi-circle-outline menu-icon"></i>
                        <span class="menu-title">门店基本信息</span>
                        <i class="menu-arrow"></i>
                    </a>
                    <div id="ui-store" class="collapse">
                        <ul class="nav flex-column sub-menu">
                            <li class="nav-item"><a class="nav-link"
                                                    href="../store/store.html">门店管理</a></li>
                            <li class="nav-item"><a class="nav-link"
                                                    href="../store/device.html">设备管理</a></li>
                            <li class="nav-item"><a class="nav-link"
                                                    href="../store/storeCode.html">二维码管理</a></li>
                        </ul>
                    </div>
                </li>
                <li class="nav-item">
                    <a aria-controls="ui-basic" aria-expanded="false" class="nav-link" data-bs-toggle="collapse"
                       href="#ui-basic">
                        <i class="mdi mdi-circle-outline menu-icon"></i>
                        <span class="menu-title">员工管理</span>
                        <i class="menu-arrow"></i>
                    </a>
                    <div id="ui-basic" class="collapse">
                        <ul class="nav flex-column sub-menu">
                            <li class="nav-item"><a class="nav-link"
                                                    href="pages/ui-features/buttons.html">Buttons</a></li>
                            <li class="nav-item"><a class="nav-link"
                                                    href="pages/ui-features/typography.html">Typography</a></li>
                        </ul>
                    </div>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="pages/charts/chartjs.html">
                        <i class="mdi mdi-chart-pie menu-icon"></i>
                        <span class="menu-title">会员管理</span>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="pages/tables/basic-table.html">
                        <i class="mdi mdi-grid-large menu-icon"></i>
                        <span class="menu-title">预约管理</span>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="pages/icons/mdi.html">
                        <i class="mdi mdi-emoticon menu-icon"></i>
                        <span class="menu-title">调理管理</span>
                    </a>
                </li>
                <li class="nav-item">
                    <a aria-controls="auth" aria-expanded="false" class="nav-link" data-bs-toggle="collapse"
                       href="#auth">
                        <i class="mdi mdi-account menu-icon"></i>
                        <span class="menu-title">收费管理</span>
                        <i class="menu-arrow"></i>
                    </a>
                    <div id="auth" class="collapse">
                        <ul class="nav flex-column sub-menu">
                            <li class="nav-item"><a class="nav-link" href="pages/samples/login.html"> Login </a>
                            </li>
                            <li class="nav-item"><a class="nav-link" href="pages/samples/login-2.html"> Login 2
                            </a></li>
                            <li class="nav-item"><a class="nav-link" href="pages/samples/register.html"> Register
                            </a></li>
                            <li class="nav-item"><a class="nav-link" href="pages/samples/register-2.html"> Register
                                2 </a></li>
                            <li class="nav-item"><a class="nav-link" href="pages/samples/lock-screen.html">
                                Lockscreen </a></li>
                        </ul>
                    </div>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="documentation/documentation.html">
                        <i class="mdi mdi-file-document-box-outline menu-icon"></i>
                        <span class="menu-title">财务统计</span>
                    </a>
                </li>
            </ul>
        </nav>
        <!-- partial -->
        <div class="main-panel">
            <div class="content-wrapper">

                <div class="col-lg-12 grid-margin stretch-card">
                    <div class="card">
                        <div class="card-body">
                              <h4 class="card-title d-flex align-items-center gap-2 "> <span
                                    class="d-flex align-items-center hover-cursor backLink"  onclick="window.history.back()"><i
                                    class="mdi mdi-arrow-left d-inline-block fs-6"
                                   ></i>返回</span> 排班管理</h4>
                            <div style="width: 100%;">
                                <div class="row justify-content-start" style="width: 100%; flex: 1;">
                                    <div class="col-9">

                                        <button class="btn btn-primary text-light" data-bs-target="#addType"
                                                data-bs-toggle="modal"
                                                type="button">
                                            添加排班
                                        </button>


                                        <!-- Modal -->
                                        <div id="addType" aria-hidden="true" aria-labelledby="exampleModalLabel"
                                             class="modal   fade" tabindex="-1">
                                            <div class="modal-dialog w-50" style="max-width: 700px; ">
                                                <div class="modal-content">
                                                    <div class="modal-header">
                                                        <h1 id="exampleModalLabel" class="modal-title fs-5">
                                                            添加排班</h1>
                                                        <button aria-label="Close" class="btn-close"
                                                                data-bs-dismiss="modal"
                                                                type="button"></button>
                                                    </div>
                                                    <div class="modal-body">
                                                        <form class="forms-sample">
                                                            <div class="form-group">
                                                                <label for="exampleInputName1">职务</label>
                                                                <select aria-label="Default select  example"
                                                                        class="form-select"
                                                                >
                                                                    <option class="" style="padding: 14px " value="1">
                                                                        One
                                                                    </option>
                                                                    <option style="padding: 14px " value="2">Two
                                                                    </option>
                                                                    <option style="padding: 14px " value="3">Three
                                                                    </option>
                                                                </select>
                                                            </div>
                                                            <div class="form-group">
                                                                <label for="exampleInputName1">员工</label>
                                                                <input id="exampleInputName1" class="form-control"
                                                                       placeholder="请填写预约分类名称" type="text">
                                                            </div>
                                                            <div class="form-group">
                                                                <label for="exampleInputName1">上午预约时间</label>
                                                                <div class="row">
                                                                    <div class="col-6">
                                                                        <input id="exampleInputName1"
                                                                               class="form-control"
                                                                               placeholder="请填写预约分类名称"
                                                                               type="time">
                                                                    </div>

                                                                    <div class="col-6">
                                                                        <input id="exampleInputName1"
                                                                               class="form-control"
                                                                               placeholder="请填写预约分类名称"
                                                                               type="time">
                                                                    </div>
                                                                </div>


                                                            </div>
                                                            <div class="form-group">
                                                                <label for="exampleInputName1">下午预约时间</label>
                                                                <div class="row">
                                                                    <div class="col-6">
                                                                        <input id="exampleInputName1"
                                                                               class="form-control"
                                                                               placeholder="请填写预约分类名称"
                                                                               type="time">
                                                                    </div>

                                                                    <div class="col-6">
                                                                        <input id="exampleInputName1"
                                                                               class="form-control"
                                                                               placeholder="请填写预约分类名称"
                                                                               type="time">
                                                                    </div>
                                                                </div>

                                                            </div>
                                                            <div class="form-group">
                                                                <label for="exampleInputName1">员工</label>
                                                                <input id="exampleInputName1" class="form-control"
                                                                       placeholder="请填写预约分类名称" type="text">
                                                            </div>
                                                            <div class="form-group">
                                                                <label for="exampleInputName1">预约频次</label>
                                                                <div class="pl-2">

                                                                </div>
                                                                <span class="pl-2">
                                                                    <input id="flexRadioDefault1"
                                                                           class="form-check-input"
                                                                           name="flexRadioDefault" type="radio">
                                                                    <label class="form-check-label"
                                                                           for="flexRadioDefault1">
                                                                        10分钟
                                                                    </label>
                                                                </span>
                                                                <span class="m-2">
                                                                    <input id="flexRadioDefault2" checked
                                                                           class="form-check-input"
                                                                           name="flexRadioDefault"
                                                                           type="radio">
                                                                    <label class="form-check-label"
                                                                           for="flexRadioDefault2">
                                                                        15分钟
                                                                    </label>
                                                                </span>
                                                                <span class="m-2">
                                                                    <input id="flexRadioDefault2" checked
                                                                           class="form-check-input"
                                                                           name="flexRadioDefault"
                                                                           type="radio">
                                                                    <label class="form-check-label"
                                                                           for="flexRadioDefault2">
                                                                        20分钟
                                                                    </label>
                                                                </span>
                                                                <span class="m-2">
                                                                    <input id="flexRadioDefault2" checked
                                                                           class="form-check-input"
                                                                           name="flexRadioDefault"
                                                                           type="radio">
                                                                    <label class="form-check-label"
                                                                           for="flexRadioDefault2">
                                                                        30分钟
                                                                    </label>
                                                                </span>
                                                                <span class="m-2">
                                                                    <input id="flexRadioDefault2" checked
                                                                           class="form-check-input"
                                                                           name="flexRadioDefault"
                                                                           type="radio">
                                                                    <label class="form-check-label"
                                                                           for="flexRadioDefault2">
                                                                        60分钟
                                                                    </label>
                                                                </span>


                                                            </div>
                                                        </form>
                                                    </div>
                                                    <div class="modal-footer">
                                                        <button class="btn btn-secondary" data-bs-dismiss="modal"
                                                                type="button">关闭
                                                        </button>
                                                        <button class="btn btn-primary text-white" type="button">确认
                                                        </button>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>


                                        <button class="btn btn-secondary" type="button">编辑</button>
                                        <button class="btn btn-danger text-light" type="button">删除</button>
                                    </div>

                                    <div class="col-3">
                                        <div class="input-group ">
                                            <span id="basic-addon1" class="input-group-text mdi mdi-magnify"></span>
                                            <input aria-describedby="basic-addon1" aria-label="Username"
                                                   class="form-control"
                                                   placeholder="请输入员工名称" type="text">
                                        </div>
                                    </div>
                                </div>
                            </div>


                            <div class="table-responsive">
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th>
                                            <input id="CheckPackage" class="form-check-input" type="checkbox"
                                                   value="">
                                        </th>
                                        <th>
                                            部门
                                        </th>
                                        <th>
                                            员工
                                        </th>
                                        <th>
                                            上午开放时间
                                        </th>
                                        <th>
                                            下午开放时间
                                        </th>
                                        <th>
                                            可预约人数
                                        </th>
                                        <th>
                                            操作
                                        </th>
                                    </tr>
                                    <!-- /pages/newpages/informadetails/informadetails?id=3 -->
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td class="py-1">
                                            <input class="form-check-input tableCheck" type="checkbox" value="">
                                        </td>
                                        <td class="py-1">
                                            调理部
                                        </td>
                                        <td class="py-1">
                                            陈佳豪
                                        </td>
                                        <!--                                        正常文字颜色  text-primary 关闭文字颜色 text-danger-->
                                        <td class=" " >
                                            9：00-12：00
                                        </td>
                                        <td class=" " >
                                            9：00-12：00
                                        </td>
                                        <td>
                                            <div class="">
                                              10(时间/频次  *频次可预约人数)
                                            </div>
                                        </td>

                                        <td>
                                            <a class="nav-link d-inline-block" type="button">编辑</a>
                                            <a class="nav-link d-inline-block text-danger"
                                               type="button">删除</a>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <nav class="mt-3 float-end">
                                <ul class="pagination">
                                    <li class="page-item disabled">
                                        <span class="page-link">Previous</span>
                                    </li>
                                    <li class="page-item"><a class="page-link" href="#">1</a></li>
                                    <li aria-current="page" class="page-item active">
                                        <span class="page-link">2</span>
                                    </li>
                                    <li class="page-item"><a class="page-link" href="#">3</a></li>
                                    <li class="page-item">
                                        <a class="page-link" href="#">Next</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
            <!-- content-wrapper ends -->
            <!-- partial:../../partials/_footer.html -->
            <footer class="footer">
                <div class="d-sm-flex justify-content-center justify-content-sm-between">
                        <span class="text-muted text-center text-sm-left d-block d-sm-inline-block">Copyright © <a
                                href="https://www.bootstrapdash.com/" target="_blank">bootstrapdash.com </a>2021</span>
                    <span class="float-none float-sm-right d-block mt-1 mt-sm-0 text-center">Only the best <a
                            href="https://www.bootstrapdash.com/" target="_blank"> Bootstrap dashboard </a>
                            templates</span>
                </div>
            </footer>
            <!-- partial -->
        </div>
        <!-- main-panel ends -->
    </div>
    <!-- page-body-wrapper ends -->
</div>
<!-- container-scroller -->
<!-- plugins:js -->
<script src="../../vendors/base/vendor.bundle.base.js"></script>

<!-- inject:js -->
<script src="../../js/off-canvas.js"></script>
<script src="../../js/hoverable-collapse.js"></script>
<script src="../../js/template.js"></script>

<!-- Custom js for this page-->
<script src="../../js/file-upload.js"></script>
<!-- End custom js for this page-->
<script>
    var CheckPackage = document.getElementById('CheckPackage')
    var tableCheck = document.getElementsByClassName('tableCheck')
    CheckPackage.addEventListener('change', (event) => {
        let ischecked = CheckPackage.getAttribute('checked')
        if (ischecked == null) {
            CheckPackage.setAttribute('checked', true)
            for (const element of tableCheck) {
                element.setAttribute('checked', true)
            }
        } else {
            CheckPackage.removeAttribute('checked')
            for (const element of tableCheck) {
                element.removeAttribute('checked')
            }
        }
    })
    // 关闭分类 并获取参数
    var closeTd = document.getElementsByClassName('closeTd')

    for (const closeTdElement of closeTd) {
        closeTdElement.addEventListener('click', () => {
            let 参数 = closeTdElement.getAttribute('data-id')
        })
    }

</script>
</body>

</html>